package org.naxx.security.naxxlet.model;

import org.naxx.security.common.IndeterminateExpressionException;

public abstract class XAbstractMatch {

	public final Boolean evaluate() {
		try {
			return this.exec();
		} catch (Throwable t) {
			throw new IndeterminateExpressionException("Exception while evaluating match", t);
		}
	}
	
	protected abstract Boolean exec();
}
